package cn.crex1.xiaomi.dao.impl;

import java.util.List;

import cn.crex1.xiaomi.core.orm.template.QueryTemplate;
import cn.crex1.xiaomi.core.orm.template.util.QueryUtils;
import cn.crex1.xiaomi.dao.CategoryDao;
import cn.crex1.xiaomi.pojo.Category;
import cn.crex1.xiaomi.pojo.Product;

public class CategoryDaoImpl implements CategoryDao{

	@Override
	//1查询所有分类查询
		public List<Product> selectAllClassification(Product products) {
		QueryTemplate queryTemplate = QueryUtils.openTemplate();
		CategoryDao categoryDao = queryTemplate.getmapper(CategoryDao.class,new Object[] {"name","测试"});
		return categoryDao.selectAllClassification(products);
	}
	
}
